package com.dfc.springmvc.common;

public class JSONMsg {

	private Integer status;

	private String msg;

	private Object data;

	public JSONMsg(Integer status, String msg, Object data) {
		this.status = status;
		this.msg = msg;
		this.data = data;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public static JSONMsg SUCCESS = new JSONMsg(0, "request success", null);

	public static JSONMsg SUCCESS(Object _data) {
		return new JSONMsg(0, "request success", _data);
	}

	public static JSONMsg FAILURE = new JSONMsg(1, "request fail", null);

}
